/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package inf3791.calendarsystem.shared;

import eu.mpower.framework.management.patientmanagement.soap.Role;
import java.util.Date;

/**
 *
 * @author Jonas Weber
 */
public class Appointment {

    private Date d;
    private String t;
    private String de;
    private Role r;

    public void setTime(Date d) {
        this.d = d;
    }

    public Date getTime() {
        return d;
    }

    public void setTitle(String title) {
        this.t = title;
    }

    public String getTitle() {
        return t;
    }

    public void setDescription(String description) {
        this.de = description;
    }

    public String getDescription() {
        return de;
    }

    public void setRoleOfCreator(Role r) {
        this.r = r;
    }

    public Role getRoleOfCreator() {
        return r;
    }
    
    public boolean isMedical() {
        return r.getRolename().equals("MS");
    }

    public Appointment(Date d, String t, String de, Role r) {
        this.d = d;
        this.t = t;
        this.de = de;
        this.r = r;
    }

    public Appointment() {
    }
}
